package com.wswy.wzcx.model.news;

import com.google.gson.annotations.SerializedName;

public class NewsModel {

  @SerializedName("id")
  public int id;
  @SerializedName("title")
  public String topic;
  @SerializedName("source")
  public String source;

  @SerializedName("publishAt")
  public long time;

  @SerializedName("thumb")
  public String thumbImg;

  @SerializedName("link")
  public String link;

  @SerializedName("miniImg")
  public NewsImage[] images;


  public boolean hasPics(){
    return images != null && images.length >=3;
  }

  public static class NewsImage{
    @SerializedName("src")
    public String imageUrl;
  }
}
